package com.dst.service;

import com.dst.eneity.Category;
import com.dst.eneity.Tea;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.DeleteProvider;

import java.util.List;


public interface TeaService {
    List<Tea> selectAll();
    void delete(int id);
    void add(Tea tea);
    void update(Tea tea);
    Tea selectById(int id);
    void deleteCateAndTea(int id);
    void deleteBatch(int [] ids);
    PageInfo<Tea> selectAllTea(String name);
    PageInfo<Tea> selectLimitAll(int curpage,int pageSize);
    PageInfo<Tea> selectLikeAll(String name,Double price);
}
